#ifndef _SHELL_JOINWAR_BEAN_H_
#define _SHELL_JOINWAR_BEAN_H_

#include "Beans.h"
#include "Message.h"
#include <vector>
#include "FightBuff.h"
using namespace std;
class JoinWar : public Bean
{
	public:
	JoinWar();
	~JoinWar();
	void reset();
	JoinWar* clone();
	//参战id
	int64 joinWarId;
	//当前状态0普通，1死亡
	int8 status;
	//盟友的buff信息

	vector<FightBuff*> fightBuffs;
	//当前气血
	int32 life;
	//当前魔法
	int32 mana;
	
	bool read_from(ByteBuf& buf);
	bool write_to(ByteBuf& buf);
};

#endif
